package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysCollectMapper;
import com.ruoyi.system.domain.SysCollect;
import com.ruoyi.system.service.ISysCollectService;

/**
 * 收藏Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-28
 */
@Service
public class SysCollectServiceImpl implements ISysCollectService 
{
    @Autowired
    private SysCollectMapper sysCollectMapper;

    /**
     * 查询收藏
     * 
     * @param id 收藏主键
     * @return 收藏
     */
    @Override
    public SysCollect selectSysCollectById(Long id)
    {
        return sysCollectMapper.selectSysCollectById(id);
    }

    /**
     * 查询收藏列表
     * 
     * @param sysCollect 收藏
     * @return 收藏
     */
    @Override
    public List<SysCollect> selectSysCollectList(SysCollect sysCollect)
    {
        return sysCollectMapper.selectSysCollectList(sysCollect);
    }

    /**
     * 新增收藏
     * 
     * @param sysCollect 收藏
     * @return 结果
     */
    @Override
    public int insertSysCollect(SysCollect sysCollect)
    {
        return sysCollectMapper.insertSysCollect(sysCollect);
    }

    /**
     * 修改收藏
     * 
     * @param sysCollect 收藏
     * @return 结果
     */
    @Override
    public int updateSysCollect(SysCollect sysCollect)
    {
        return sysCollectMapper.updateSysCollect(sysCollect);
    }

    /**
     * 批量删除收藏
     * 
     * @param ids 需要删除的收藏主键
     * @return 结果
     */
    @Override
    public int deleteSysCollectByIds(Long[] ids)
    {
        return sysCollectMapper.deleteSysCollectByIds(ids);
    }

    /**
     * 删除收藏信息
     * 
     * @param id 收藏主键
     * @return 结果
     */
    @Override
    public int deleteSysCollectById(Long id)
    {
        return sysCollectMapper.deleteSysCollectById(id);
    }
}
